#!/usr/bin/env python
# -*- coding: iso8859 -*-

__all__ = [ 'characters', 'xmlutils' ]

import xmlutils

def get_xml_implementation ():
	try:
		import libxml2
		import libxslt

		return xmlutils.XmlUtilsLibxml

	except ImportError:
		pass

	try:
		from xml.dom import minidom

		return xmlutils.XmlUtilsMinidom

	except ImportError:
		raise ImportError, 'No XML implementation available'


xmlutils.XmlUtils = get_xml_implementation ()

